package top.infopub.mgr.cap.dao;

import org.apache.ibatis.annotations.Param;

import com.github.pagehelper.Page;

import top.infopub.generic.GenericDao;
import top.infopub.mgr.cap.domain.LookInfoDomain;
import top.infopub.mgr.cap.dto.LookInfoDto;
import top.infopub.mgr.cap.vo.LookInfoBeginVo;
import top.infopub.mgr.cap.vo.LookInfoVo;
import top.infopub.model.cap.LookInfo;

/** 融资尽调(CAP_LOOK_INFO) **/
public interface LookInfoDao extends GenericDao<LookInfo, String> {

    /**
     * 根据条件查询融资尽调记录
     * @param LookInfoVo
     * @return
     * @see
     */
    Page<LookInfoDomain> selectByDomainWhere(LookInfoBeginVo lookInfoBeginVo);

    /**
     * 根据条件查询融资尽调记录-我审批的
     * @param LookInfoVo
     * @return
     * @see
     */
    Page<LookInfoDomain> selectMyCheckByDomainWhere(LookInfoVo lookInfoVo);

    /**
     * 添加-融资尽调
     */
    void insertById(LookInfo lookInfo);

    /**
     * 根据融资尽调id查询详情
     * @param id 主键id
     * @return
     * @see
     */
    LookInfo selectById(@Param("id")String id);

    LookInfoDto queryDetailById(@Param("id")String id);

    void updateById(LookInfo lookInfo);

    LookInfo queryByProCode(@Param("proCode") String proCode);
}
